import request from "@/request/request"
// 请求首页数据
export const GetHomeList = () => request.get("/index/index")
export const GetPopupData = () => request.get("/search/index")
export const GetSearchList = (params) => request.get("/search/helper", { params })
// 请求搜索商品数据  // 首页分类区块内容
export const GetTipList = (params) => request.get("/goods/list", { params })
// 清除历史记录
export const ClearHis = () => request.get("/search/clearhistory",)
// 请求专题商品数据
export const GetTemplateList = (params) => request.get("/topic/list", { params })
// 分类
// 请求分类页面数据 左侧边栏
export const GetTypeList = () => request.get("/catalog/index",)
// 请求当前页面分类数据
export const GetCurrentData = (params) => request.get("/catalog/current", { params })
// 首页分类区块标题栏
export const GetHomeKind = (params) => request.get("/goods/category", { params })
// 商品详情
export const GetDetails = (params) => request.get("/goods/detail", { params })
// 商品详情中的商品
export const GetDetailsPro = (params) => request.get("/goods/related", { params })
// 品牌制造商
export const GetBrand = (params) => request.get("/brand/detail", { params })
// 登录
export const GetLogin = (params) => request.post("/auth/loginByWeb", params)
// 获取购物车数据
export const GetCarData = (params) => request.get("/cart/index", params)
// 添加购物车
export const GetAddData = (params) => request.post("/cart/add", params)
// 删除
export const GetDelData = (params) => request.post("/cart/delete", params)
// 商品步进器
export const GetStepperData = (params) => request.post("/cart/update", params)
// 获取购物车数量
export const GetCountData = (params) => request.post("/cart/goodscount", params)
// 选中状态
export const GetCheck = (params) => request.post("/cart/checked", params)





















